package com.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ExplaindetailrecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public ExplaindetailrecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andExidIsNull() {
            addCriterion("exID is null");
            return (Criteria) this;
        }

        public Criteria andExidIsNotNull() {
            addCriterion("exID is not null");
            return (Criteria) this;
        }

        public Criteria andExidEqualTo(String value) {
            addCriterion("exID =", value, "exid");
            return (Criteria) this;
        }

        public Criteria andExidNotEqualTo(String value) {
            addCriterion("exID <>", value, "exid");
            return (Criteria) this;
        }

        public Criteria andExidGreaterThan(String value) {
            addCriterion("exID >", value, "exid");
            return (Criteria) this;
        }

        public Criteria andExidGreaterThanOrEqualTo(String value) {
            addCriterion("exID >=", value, "exid");
            return (Criteria) this;
        }

        public Criteria andExidLessThan(String value) {
            addCriterion("exID <", value, "exid");
            return (Criteria) this;
        }

        public Criteria andExidLessThanOrEqualTo(String value) {
            addCriterion("exID <=", value, "exid");
            return (Criteria) this;
        }

        public Criteria andExidLike(String value) {
            addCriterion("exID like", value, "exid");
            return (Criteria) this;
        }

        public Criteria andExidNotLike(String value) {
            addCriterion("exID not like", value, "exid");
            return (Criteria) this;
        }

        public Criteria andExidIn(List<String> values) {
            addCriterion("exID in", values, "exid");
            return (Criteria) this;
        }

        public Criteria andExidNotIn(List<String> values) {
            addCriterion("exID not in", values, "exid");
            return (Criteria) this;
        }

        public Criteria andExidBetween(String value1, String value2) {
            addCriterion("exID between", value1, value2, "exid");
            return (Criteria) this;
        }

        public Criteria andExidNotBetween(String value1, String value2) {
            addCriterion("exID not between", value1, value2, "exid");
            return (Criteria) this;
        }

        public Criteria andCidIsNull() {
            addCriterion("CID is null");
            return (Criteria) this;
        }

        public Criteria andCidIsNotNull() {
            addCriterion("CID is not null");
            return (Criteria) this;
        }

        public Criteria andCidEqualTo(String value) {
            addCriterion("CID =", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotEqualTo(String value) {
            addCriterion("CID <>", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidGreaterThan(String value) {
            addCriterion("CID >", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidGreaterThanOrEqualTo(String value) {
            addCriterion("CID >=", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidLessThan(String value) {
            addCriterion("CID <", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidLessThanOrEqualTo(String value) {
            addCriterion("CID <=", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidLike(String value) {
            addCriterion("CID like", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotLike(String value) {
            addCriterion("CID not like", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidIn(List<String> values) {
            addCriterion("CID in", values, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotIn(List<String> values) {
            addCriterion("CID not in", values, "cid");
            return (Criteria) this;
        }

        public Criteria andCidBetween(String value1, String value2) {
            addCriterion("CID between", value1, value2, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotBetween(String value1, String value2) {
            addCriterion("CID not between", value1, value2, "cid");
            return (Criteria) this;
        }

        public Criteria andSmidIsNull() {
            addCriterion("SMID is null");
            return (Criteria) this;
        }

        public Criteria andSmidIsNotNull() {
            addCriterion("SMID is not null");
            return (Criteria) this;
        }

        public Criteria andSmidEqualTo(String value) {
            addCriterion("SMID =", value, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidNotEqualTo(String value) {
            addCriterion("SMID <>", value, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidGreaterThan(String value) {
            addCriterion("SMID >", value, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidGreaterThanOrEqualTo(String value) {
            addCriterion("SMID >=", value, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidLessThan(String value) {
            addCriterion("SMID <", value, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidLessThanOrEqualTo(String value) {
            addCriterion("SMID <=", value, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidLike(String value) {
            addCriterion("SMID like", value, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidNotLike(String value) {
            addCriterion("SMID not like", value, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidIn(List<String> values) {
            addCriterion("SMID in", values, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidNotIn(List<String> values) {
            addCriterion("SMID not in", values, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidBetween(String value1, String value2) {
            addCriterion("SMID between", value1, value2, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidNotBetween(String value1, String value2) {
            addCriterion("SMID not between", value1, value2, "smid");
            return (Criteria) this;
        }

        public Criteria andBuytimeIsNull() {
            addCriterion("BUYTIME is null");
            return (Criteria) this;
        }

        public Criteria andBuytimeIsNotNull() {
            addCriterion("BUYTIME is not null");
            return (Criteria) this;
        }

        public Criteria andBuytimeEqualTo(Date value) {
            addCriterion("BUYTIME =", value, "buytime");
            return (Criteria) this;
        }

        public Criteria andBuytimeNotEqualTo(Date value) {
            addCriterion("BUYTIME <>", value, "buytime");
            return (Criteria) this;
        }

        public Criteria andBuytimeGreaterThan(Date value) {
            addCriterion("BUYTIME >", value, "buytime");
            return (Criteria) this;
        }

        public Criteria andBuytimeGreaterThanOrEqualTo(Date value) {
            addCriterion("BUYTIME >=", value, "buytime");
            return (Criteria) this;
        }

        public Criteria andBuytimeLessThan(Date value) {
            addCriterion("BUYTIME <", value, "buytime");
            return (Criteria) this;
        }

        public Criteria andBuytimeLessThanOrEqualTo(Date value) {
            addCriterion("BUYTIME <=", value, "buytime");
            return (Criteria) this;
        }

        public Criteria andBuytimeIn(List<Date> values) {
            addCriterion("BUYTIME in", values, "buytime");
            return (Criteria) this;
        }

        public Criteria andBuytimeNotIn(List<Date> values) {
            addCriterion("BUYTIME not in", values, "buytime");
            return (Criteria) this;
        }

        public Criteria andBuytimeBetween(Date value1, Date value2) {
            addCriterion("BUYTIME between", value1, value2, "buytime");
            return (Criteria) this;
        }

        public Criteria andBuytimeNotBetween(Date value1, Date value2) {
            addCriterion("BUYTIME not between", value1, value2, "buytime");
            return (Criteria) this;
        }

        public Criteria andSmpriceIsNull() {
            addCriterion("SMPRICE is null");
            return (Criteria) this;
        }

        public Criteria andSmpriceIsNotNull() {
            addCriterion("SMPRICE is not null");
            return (Criteria) this;
        }

        public Criteria andSmpriceEqualTo(String value) {
            addCriterion("SMPRICE =", value, "smprice");
            return (Criteria) this;
        }

        public Criteria andSmpriceNotEqualTo(String value) {
            addCriterion("SMPRICE <>", value, "smprice");
            return (Criteria) this;
        }

        public Criteria andSmpriceGreaterThan(String value) {
            addCriterion("SMPRICE >", value, "smprice");
            return (Criteria) this;
        }

        public Criteria andSmpriceGreaterThanOrEqualTo(String value) {
            addCriterion("SMPRICE >=", value, "smprice");
            return (Criteria) this;
        }

        public Criteria andSmpriceLessThan(String value) {
            addCriterion("SMPRICE <", value, "smprice");
            return (Criteria) this;
        }

        public Criteria andSmpriceLessThanOrEqualTo(String value) {
            addCriterion("SMPRICE <=", value, "smprice");
            return (Criteria) this;
        }

        public Criteria andSmpriceLike(String value) {
            addCriterion("SMPRICE like", value, "smprice");
            return (Criteria) this;
        }

        public Criteria andSmpriceNotLike(String value) {
            addCriterion("SMPRICE not like", value, "smprice");
            return (Criteria) this;
        }

        public Criteria andSmpriceIn(List<String> values) {
            addCriterion("SMPRICE in", values, "smprice");
            return (Criteria) this;
        }

        public Criteria andSmpriceNotIn(List<String> values) {
            addCriterion("SMPRICE not in", values, "smprice");
            return (Criteria) this;
        }

        public Criteria andSmpriceBetween(String value1, String value2) {
            addCriterion("SMPRICE between", value1, value2, "smprice");
            return (Criteria) this;
        }

        public Criteria andSmpriceNotBetween(String value1, String value2) {
            addCriterion("SMPRICE not between", value1, value2, "smprice");
            return (Criteria) this;
        }

        public Criteria andCommentIsNull() {
            addCriterion("comment is null");
            return (Criteria) this;
        }

        public Criteria andCommentIsNotNull() {
            addCriterion("comment is not null");
            return (Criteria) this;
        }

        public Criteria andCommentEqualTo(String value) {
            addCriterion("comment =", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentNotEqualTo(String value) {
            addCriterion("comment <>", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentGreaterThan(String value) {
            addCriterion("comment >", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentGreaterThanOrEqualTo(String value) {
            addCriterion("comment >=", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentLessThan(String value) {
            addCriterion("comment <", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentLessThanOrEqualTo(String value) {
            addCriterion("comment <=", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentLike(String value) {
            addCriterion("comment like", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentNotLike(String value) {
            addCriterion("comment not like", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentIn(List<String> values) {
            addCriterion("comment in", values, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentNotIn(List<String> values) {
            addCriterion("comment not in", values, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentBetween(String value1, String value2) {
            addCriterion("comment between", value1, value2, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentNotBetween(String value1, String value2) {
            addCriterion("comment not between", value1, value2, "comment");
            return (Criteria) this;
        }

        public Criteria andPridIsNull() {
            addCriterion("prid is null");
            return (Criteria) this;
        }

        public Criteria andPridIsNotNull() {
            addCriterion("prid is not null");
            return (Criteria) this;
        }

        public Criteria andPridEqualTo(Integer value) {
            addCriterion("prid =", value, "prid");
            return (Criteria) this;
        }

        public Criteria andPridNotEqualTo(Integer value) {
            addCriterion("prid <>", value, "prid");
            return (Criteria) this;
        }

        public Criteria andPridGreaterThan(Integer value) {
            addCriterion("prid >", value, "prid");
            return (Criteria) this;
        }

        public Criteria andPridGreaterThanOrEqualTo(Integer value) {
            addCriterion("prid >=", value, "prid");
            return (Criteria) this;
        }

        public Criteria andPridLessThan(Integer value) {
            addCriterion("prid <", value, "prid");
            return (Criteria) this;
        }

        public Criteria andPridLessThanOrEqualTo(Integer value) {
            addCriterion("prid <=", value, "prid");
            return (Criteria) this;
        }

        public Criteria andPridIn(List<Integer> values) {
            addCriterion("prid in", values, "prid");
            return (Criteria) this;
        }

        public Criteria andPridNotIn(List<Integer> values) {
            addCriterion("prid not in", values, "prid");
            return (Criteria) this;
        }

        public Criteria andPridBetween(Integer value1, Integer value2) {
            addCriterion("prid between", value1, value2, "prid");
            return (Criteria) this;
        }

        public Criteria andPridNotBetween(Integer value1, Integer value2) {
            addCriterion("prid not between", value1, value2, "prid");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}